<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PRNGD_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PRNGD_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { INIT_ST, LOCAL_ST, TCP_ST, UDP_ST, DM_ST, MQ_ST}Prngd_State;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;stdio.h&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;signal.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;IOUnit.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define PRNGD_NONE 0</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define PRNGD_BBS 1</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define PRNGD_ELSE 2</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define OUTPUT_STDFILE &quot;prngd_out&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define random_file &quot;/dev/random&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define u_random_file &quot;/dev/urandom&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> LOCAL_CODE = 0x01;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TCP_CODE = 0x02;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDP_CODE = 0x04;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDOMAIN_CODE = 0x08;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> MQ_CODE = 0x10;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">//#define DEBUG_MODE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd.html">Prngd</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd</a>(Prngd_State <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">~Prngd</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">work</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">getRndData</a>(<span class="keywordtype">int</span> numberOfBits, <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">   77</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">getResultSize</a>()</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            <span class="keywordflow">return</span>(<a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> / 8 + <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> % 8);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">   87</a></span>&#160;        <span class="keywordtype">short</span> <a class="code" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">prngd_switch</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">   89</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">seed_part2</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">   91</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">   93</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">   95</a></span>&#160;        std::string* <a class="code" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">output_file</a>; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">   97</a></span>&#160;        <a class="code" href="class_b_b_s.html">BBS</a>* <a class="code" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">bbs</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">   99</a></span>&#160;        <a class="code" href="class_i_o_unit.html">IOUnit</a>* <a class="code" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">iounit</a>; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">  101</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">s</a>; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">  103</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">s2</a>; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">  105</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">output_bits</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">readParameters</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;};</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_prngd_html_a5028b89d2ac673890096276be4a83695"><div class="ttname"><a href="class_prngd.html#a5028b89d2ac673890096276be4a83695">Prngd::s2</a></div><div class="ttdeci">mpz_t s2</div><div class="ttdef"><b>Definition:</b> Prngd.h:103</div></div>
<div class="ttc" id="class_prngd_html_a960b30401c461a23e5ac0f201e1e1027"><div class="ttname"><a href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">Prngd::prngd_switch</a></div><div class="ttdeci">short prngd_switch</div><div class="ttdef"><b>Definition:</b> Prngd.h:87</div></div>
<div class="ttc" id="class_i_o_unit_html"><div class="ttname"><a href="class_i_o_unit.html">IOUnit</a></div><div class="ttdoc">Class for Input/Output File Operations. </div><div class="ttdef"><b>Definition:</b> IOUnit.h:24</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd_html_a5f750749a33a877a38d34f207c419f3b"><div class="ttname"><a href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">Prngd::iounit</a></div><div class="ttdeci">IOUnit * iounit</div><div class="ttdef"><b>Definition:</b> Prngd.h:99</div></div>
<div class="ttc" id="class_prngd_html_ace490e877770aa0afa53cb46474a4992"><div class="ttname"><a href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">Prngd::bbs</a></div><div class="ttdeci">BBS * bbs</div><div class="ttdef"><b>Definition:</b> Prngd.h:97</div></div>
<div class="ttc" id="class_prngd_html_ad0e88337ad95c3bd5a518787a310cba9"><div class="ttname"><a href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">Prngd::output_file</a></div><div class="ttdeci">std::string * output_file</div><div class="ttdef"><b>Definition:</b> Prngd.h:95</div></div>
<div class="ttc" id="class_prngd_html_a50ec97e3dba6c8248a3f728a7b3c7845"><div class="ttname"><a href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">Prngd::seed_part2</a></div><div class="ttdeci">char * seed_part2</div><div class="ttdef"><b>Definition:</b> Prngd.h:89</div></div>
<div class="ttc" id="class_prngd_html_af9e5cbd0e999ee052d90c39a213c5dba"><div class="ttname"><a href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd::Prngd</a></div><div class="ttdeci">Prngd(Prngd_State state)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:7</div></div>
<div class="ttc" id="class_prngd_html_a651cac44aa2765c7428d2d89b0f8776c"><div class="ttname"><a href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">Prngd::getResultSize</a></div><div class="ttdeci">int getResultSize()</div><div class="ttdef"><b>Definition:</b> Prngd.h:77</div></div>
<div class="ttc" id="class_prngd_html_a617fbe2be79677859235262d59b4c0f0"><div class="ttname"><a href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">Prngd::work</a></div><div class="ttdeci">char * work(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:40</div></div>
<div class="ttc" id="class_prngd_html_a1c0f31aa9e8540e9c9bc91252a61dfef"><div class="ttname"><a href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">Prngd::output_bits</a></div><div class="ttdeci">mpz_t output_bits</div><div class="ttdef"><b>Definition:</b> Prngd.h:105</div></div>
<div class="ttc" id="class_prngd_html_a33b4aeff14c93d0346f32fb0628a4aaa"><div class="ttname"><a href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">Prngd::bitCount</a></div><div class="ttdeci">int bitCount</div><div class="ttdef"><b>Definition:</b> Prngd.h:93</div></div>
<div class="ttc" id="class_prngd_html_a3d71db731cf89aca57f30bf1ef95191b"><div class="ttname"><a href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">Prngd::s</a></div><div class="ttdeci">mpz_t s</div><div class="ttdef"><b>Definition:</b> Prngd.h:101</div></div>
<div class="ttc" id="class_prngd_html_aabcd69b3ba05afbf85dbe6e1d2fb91e6"><div class="ttname"><a href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">Prngd::state</a></div><div class="ttdeci">int state</div><div class="ttdef"><b>Definition:</b> Prngd.h:91</div></div>
<div class="ttc" id="class_prngd_html_aff241d903f4c1b35e61da830710a4cbe"><div class="ttname"><a href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">Prngd::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> Prngd.h:85</div></div>
<div class="ttc" id="class_prngd_html_a07d9db50d295ba88184d0b0d3d191a06"><div class="ttname"><a href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">Prngd::readParameters</a></div><div class="ttdeci">int readParameters(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:143</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_prngd_html_aede266348df7d7734e9e3826ad4ddf9d"><div class="ttname"><a href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">Prngd::~Prngd</a></div><div class="ttdeci">~Prngd()</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:24</div></div>
<div class="ttc" id="class_prngd_html_a9e5848669332f0936a77b2db0c663c37"><div class="ttname"><a href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">Prngd::getRndData</a></div><div class="ttdeci">static char * getRndData(int numberOfBits, bool useRandom)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:89</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<<<<<<< .mine
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PRNGD_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PRNGD_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { INIT_ST, LOCAL_ST, TCP_ST, UDP_ST, DM_ST, MQ_ST}Prngd_State;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;stdio.h&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;signal.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;IOUnit.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define PRNGD_NONE 0</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define PRNGD_BBS 1</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define PRNGD_ELSE 2</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define OUTPUT_STDFILE &quot;prngd_out&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define random_file &quot;/dev/random&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define u_random_file &quot;/dev/urandom&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> LOCAL_CODE = 0x01;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TCP_CODE = 0x02;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDP_CODE = 0x04;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDOMAIN_CODE = 0x08;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> MQ_CODE = 0x10;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">//#define DEBUG_MODE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd.html">Prngd</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd</a>(Prngd_State <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">~Prngd</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">work</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">getRndData</a>(<span class="keywordtype">int</span> numberOfBits, <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">   77</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">getResultSize</a>()</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            <span class="keywordflow">return</span>(<a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> / 8 + <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> % 8);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">   87</a></span>&#160;        <span class="keywordtype">short</span> <a class="code" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">prngd_switch</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">   89</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">seed_part2</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">   91</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">   93</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">   95</a></span>&#160;        std::string* <a class="code" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">output_file</a>; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">   97</a></span>&#160;        <a class="code" href="class_b_b_s.html">BBS</a>* <a class="code" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">bbs</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">   99</a></span>&#160;        <a class="code" href="class_i_o_unit.html">IOUnit</a>* <a class="code" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">iounit</a>; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">  101</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">s</a>; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">  103</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">s2</a>; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">  105</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">output_bits</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">readParameters</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;};</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_prngd_html_a5028b89d2ac673890096276be4a83695"><div class="ttname"><a href="class_prngd.html#a5028b89d2ac673890096276be4a83695">Prngd::s2</a></div><div class="ttdeci">mpz_t s2</div><div class="ttdef"><b>Definition:</b> Prngd.h:103</div></div>
<div class="ttc" id="class_prngd_html_a960b30401c461a23e5ac0f201e1e1027"><div class="ttname"><a href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">Prngd::prngd_switch</a></div><div class="ttdeci">short prngd_switch</div><div class="ttdef"><b>Definition:</b> Prngd.h:87</div></div>
<div class="ttc" id="class_i_o_unit_html"><div class="ttname"><a href="class_i_o_unit.html">IOUnit</a></div><div class="ttdoc">Class for Input/Output File Operations. </div><div class="ttdef"><b>Definition:</b> IOUnit.h:24</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd_html_a5f750749a33a877a38d34f207c419f3b"><div class="ttname"><a href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">Prngd::iounit</a></div><div class="ttdeci">IOUnit * iounit</div><div class="ttdef"><b>Definition:</b> Prngd.h:99</div></div>
<div class="ttc" id="class_prngd_html_ace490e877770aa0afa53cb46474a4992"><div class="ttname"><a href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">Prngd::bbs</a></div><div class="ttdeci">BBS * bbs</div><div class="ttdef"><b>Definition:</b> Prngd.h:97</div></div>
<div class="ttc" id="class_prngd_html_ad0e88337ad95c3bd5a518787a310cba9"><div class="ttname"><a href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">Prngd::output_file</a></div><div class="ttdeci">std::string * output_file</div><div class="ttdef"><b>Definition:</b> Prngd.h:95</div></div>
<div class="ttc" id="class_prngd_html_a50ec97e3dba6c8248a3f728a7b3c7845"><div class="ttname"><a href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">Prngd::seed_part2</a></div><div class="ttdeci">char * seed_part2</div><div class="ttdef"><b>Definition:</b> Prngd.h:89</div></div>
<div class="ttc" id="class_prngd_html_af9e5cbd0e999ee052d90c39a213c5dba"><div class="ttname"><a href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd::Prngd</a></div><div class="ttdeci">Prngd(Prngd_State state)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:7</div></div>
<div class="ttc" id="class_prngd_html_a651cac44aa2765c7428d2d89b0f8776c"><div class="ttname"><a href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">Prngd::getResultSize</a></div><div class="ttdeci">int getResultSize()</div><div class="ttdef"><b>Definition:</b> Prngd.h:77</div></div>
<div class="ttc" id="class_prngd_html_a617fbe2be79677859235262d59b4c0f0"><div class="ttname"><a href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">Prngd::work</a></div><div class="ttdeci">char * work(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:40</div></div>
<div class="ttc" id="class_prngd_html_a1c0f31aa9e8540e9c9bc91252a61dfef"><div class="ttname"><a href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">Prngd::output_bits</a></div><div class="ttdeci">mpz_t output_bits</div><div class="ttdef"><b>Definition:</b> Prngd.h:105</div></div>
<div class="ttc" id="class_prngd_html_a33b4aeff14c93d0346f32fb0628a4aaa"><div class="ttname"><a href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">Prngd::bitCount</a></div><div class="ttdeci">int bitCount</div><div class="ttdef"><b>Definition:</b> Prngd.h:93</div></div>
<div class="ttc" id="class_prngd_html_a3d71db731cf89aca57f30bf1ef95191b"><div class="ttname"><a href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">Prngd::s</a></div><div class="ttdeci">mpz_t s</div><div class="ttdef"><b>Definition:</b> Prngd.h:101</div></div>
<div class="ttc" id="class_prngd_html_aabcd69b3ba05afbf85dbe6e1d2fb91e6"><div class="ttname"><a href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">Prngd::state</a></div><div class="ttdeci">int state</div><div class="ttdef"><b>Definition:</b> Prngd.h:91</div></div>
<div class="ttc" id="class_prngd_html_aff241d903f4c1b35e61da830710a4cbe"><div class="ttname"><a href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">Prngd::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> Prngd.h:85</div></div>
<div class="ttc" id="class_prngd_html_a07d9db50d295ba88184d0b0d3d191a06"><div class="ttname"><a href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">Prngd::readParameters</a></div><div class="ttdeci">int readParameters(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:143</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_prngd_html_aede266348df7d7734e9e3826ad4ddf9d"><div class="ttname"><a href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">Prngd::~Prngd</a></div><div class="ttdeci">~Prngd()</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:24</div></div>
<div class="ttc" id="class_prngd_html_a9e5848669332f0936a77b2db0c663c37"><div class="ttname"><a href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">Prngd::getRndData</a></div><div class="ttdeci">static char * getRndData(int numberOfBits, bool useRandom)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:89</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd.h</b></li>
    <li class="footer">Generated on Fri Aug 29 2014 14:14:52 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
=======
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/prngd_server/inc/Prngd.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_prngd_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Prngd.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef PRNGD_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define PRNGD_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> { INIT_ST, LOCAL_ST, TCP_ST, UDP_ST, DM_ST, MQ_ST}Prngd_State;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;stdio.h&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;signal.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;gmp.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;gmpxx.h&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;IOUnit.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#define PRNGD_NONE 0</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#define PRNGD_BBS 1</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define PRNGD_ELSE 2</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define OUTPUT_STDFILE &quot;prngd_out&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define random_file &quot;/dev/random&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define u_random_file &quot;/dev/urandom&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> LOCAL_CODE = 0x01;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> TCP_CODE = 0x02;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDP_CODE = 0x04;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> UDOMAIN_CODE = 0x08;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> MQ_CODE = 0x10;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">//#define DEBUG_MODE</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span><a class="code" href="class_b_b_s.html">BBS</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_prngd.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_prngd.html">Prngd</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd</a>(Prngd_State <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">~Prngd</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">work</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">getRndData</a>(<span class="keywordtype">int</span> numberOfBits, <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">   77</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">getResultSize</a>()</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            <span class="keywordflow">return</span>(<a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> / 8 + <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a> % 8);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">   85</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">useRandom</a>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">   87</a></span>&#160;        <span class="keywordtype">short</span> <a class="code" href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">prngd_switch</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">   89</a></span>&#160;        <span class="keywordtype">char</span>* <a class="code" href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">seed_part2</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">   91</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">state</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">   93</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">bitCount</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">   95</a></span>&#160;        std::string* <a class="code" href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">output_file</a>; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">   97</a></span>&#160;        <a class="code" href="class_b_b_s.html">BBS</a>* <a class="code" href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">bbs</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">   99</a></span>&#160;        <a class="code" href="class_i_o_unit.html">IOUnit</a>* <a class="code" href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">iounit</a>; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">  101</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">s</a>; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">  103</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a5028b89d2ac673890096276be4a83695">s2</a>; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">  105</a></span>&#160;        mpz_t <a class="code" href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">output_bits</a>;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">readParameters</a>(<span class="keywordtype">int</span> param_count, <span class="keywordtype">char</span>** params);</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;};</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_prngd_html_a5028b89d2ac673890096276be4a83695"><div class="ttname"><a href="class_prngd.html#a5028b89d2ac673890096276be4a83695">Prngd::s2</a></div><div class="ttdeci">mpz_t s2</div><div class="ttdef"><b>Definition:</b> Prngd.h:103</div></div>
<div class="ttc" id="class_prngd_html_a960b30401c461a23e5ac0f201e1e1027"><div class="ttname"><a href="class_prngd.html#a960b30401c461a23e5ac0f201e1e1027">Prngd::prngd_switch</a></div><div class="ttdeci">short prngd_switch</div><div class="ttdef"><b>Definition:</b> Prngd.h:87</div></div>
<div class="ttc" id="class_i_o_unit_html"><div class="ttname"><a href="class_i_o_unit.html">IOUnit</a></div><div class="ttdoc">Class for Input/Output File Operations. </div><div class="ttdef"><b>Definition:</b> IOUnit.h:24</div></div>
<div class="ttc" id="class_prngd_html"><div class="ttname"><a href="class_prngd.html">Prngd</a></div><div class="ttdoc">Can generate random bits with the help of a BBS-generator or a ...... </div><div class="ttdef"><b>Definition:</b> Prngd.h:48</div></div>
<div class="ttc" id="class_prngd_html_a5f750749a33a877a38d34f207c419f3b"><div class="ttname"><a href="class_prngd.html#a5f750749a33a877a38d34f207c419f3b">Prngd::iounit</a></div><div class="ttdeci">IOUnit * iounit</div><div class="ttdef"><b>Definition:</b> Prngd.h:99</div></div>
<div class="ttc" id="class_prngd_html_ace490e877770aa0afa53cb46474a4992"><div class="ttname"><a href="class_prngd.html#ace490e877770aa0afa53cb46474a4992">Prngd::bbs</a></div><div class="ttdeci">BBS * bbs</div><div class="ttdef"><b>Definition:</b> Prngd.h:97</div></div>
<div class="ttc" id="class_prngd_html_ad0e88337ad95c3bd5a518787a310cba9"><div class="ttname"><a href="class_prngd.html#ad0e88337ad95c3bd5a518787a310cba9">Prngd::output_file</a></div><div class="ttdeci">std::string * output_file</div><div class="ttdef"><b>Definition:</b> Prngd.h:95</div></div>
<div class="ttc" id="class_prngd_html_a50ec97e3dba6c8248a3f728a7b3c7845"><div class="ttname"><a href="class_prngd.html#a50ec97e3dba6c8248a3f728a7b3c7845">Prngd::seed_part2</a></div><div class="ttdeci">char * seed_part2</div><div class="ttdef"><b>Definition:</b> Prngd.h:89</div></div>
<div class="ttc" id="class_prngd_html_af9e5cbd0e999ee052d90c39a213c5dba"><div class="ttname"><a href="class_prngd.html#af9e5cbd0e999ee052d90c39a213c5dba">Prngd::Prngd</a></div><div class="ttdeci">Prngd(Prngd_State state)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:7</div></div>
<div class="ttc" id="class_prngd_html_a651cac44aa2765c7428d2d89b0f8776c"><div class="ttname"><a href="class_prngd.html#a651cac44aa2765c7428d2d89b0f8776c">Prngd::getResultSize</a></div><div class="ttdeci">int getResultSize()</div><div class="ttdef"><b>Definition:</b> Prngd.h:77</div></div>
<div class="ttc" id="class_prngd_html_a617fbe2be79677859235262d59b4c0f0"><div class="ttname"><a href="class_prngd.html#a617fbe2be79677859235262d59b4c0f0">Prngd::work</a></div><div class="ttdeci">char * work(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:40</div></div>
<div class="ttc" id="class_prngd_html_a1c0f31aa9e8540e9c9bc91252a61dfef"><div class="ttname"><a href="class_prngd.html#a1c0f31aa9e8540e9c9bc91252a61dfef">Prngd::output_bits</a></div><div class="ttdeci">mpz_t output_bits</div><div class="ttdef"><b>Definition:</b> Prngd.h:105</div></div>
<div class="ttc" id="class_prngd_html_a33b4aeff14c93d0346f32fb0628a4aaa"><div class="ttname"><a href="class_prngd.html#a33b4aeff14c93d0346f32fb0628a4aaa">Prngd::bitCount</a></div><div class="ttdeci">int bitCount</div><div class="ttdef"><b>Definition:</b> Prngd.h:93</div></div>
<div class="ttc" id="class_prngd_html_a3d71db731cf89aca57f30bf1ef95191b"><div class="ttname"><a href="class_prngd.html#a3d71db731cf89aca57f30bf1ef95191b">Prngd::s</a></div><div class="ttdeci">mpz_t s</div><div class="ttdef"><b>Definition:</b> Prngd.h:101</div></div>
<div class="ttc" id="class_prngd_html_aabcd69b3ba05afbf85dbe6e1d2fb91e6"><div class="ttname"><a href="class_prngd.html#aabcd69b3ba05afbf85dbe6e1d2fb91e6">Prngd::state</a></div><div class="ttdeci">int state</div><div class="ttdef"><b>Definition:</b> Prngd.h:91</div></div>
<div class="ttc" id="class_prngd_html_aff241d903f4c1b35e61da830710a4cbe"><div class="ttname"><a href="class_prngd.html#aff241d903f4c1b35e61da830710a4cbe">Prngd::useRandom</a></div><div class="ttdeci">bool useRandom</div><div class="ttdef"><b>Definition:</b> Prngd.h:85</div></div>
<div class="ttc" id="class_prngd_html_a07d9db50d295ba88184d0b0d3d191a06"><div class="ttname"><a href="class_prngd.html#a07d9db50d295ba88184d0b0d3d191a06">Prngd::readParameters</a></div><div class="ttdeci">int readParameters(int param_count, char **params)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:143</div></div>
<div class="ttc" id="class_b_b_s_html"><div class="ttname"><a href="class_b_b_s.html">BBS</a></div><div class="ttdoc">Blum Blum Shub pseudo random number generator. </div><div class="ttdef"><b>Definition:</b> BBS.h:25</div></div>
<div class="ttc" id="class_prngd_html_aede266348df7d7734e9e3826ad4ddf9d"><div class="ttname"><a href="class_prngd.html#aede266348df7d7734e9e3826ad4ddf9d">Prngd::~Prngd</a></div><div class="ttdeci">~Prngd()</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:24</div></div>
<div class="ttc" id="class_prngd_html_a9e5848669332f0936a77b2db0c663c37"><div class="ttname"><a href="class_prngd.html#a9e5848669332f0936a77b2db0c663c37">Prngd::getRndData</a></div><div class="ttdeci">static char * getRndData(int numberOfBits, bool useRandom)</div><div class="ttdef"><b>Definition:</b> Prngd.cpp:89</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_47daf5b682bb20d31b5e64df701b3e23.html">prngd_server</a></li><li class="navelem"><a class="el" href="dir_83a04de6cb89da3aeafaea27fac18852.html">inc</a></li><li class="navelem"><b>Prngd.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:01:31 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
>>>>>>> .r39
>>>>>>> .r46
